package tables

type UserRoles struct {
	Id     int
	Uid    *Users `orm:"rel(fk)"`
	Roleid *Roles `orm:"rel(fk)"`
}

func (ur *UserRoles) TableName() string {
	return "user_roles"
}

func (ur *UserRoles) TableIndex() [][]string {
	return [][]string{
		[]string{"Uid", "Roleid"},
	}
}

func (ur *UserRoles) TableUnique() [][]string {
	return [][]string{
		[]string{"Uid", "Roleid"},
	}
}
